<%--
 *  @Author: Kevinfan
 *  Date:    2010/12/23
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  //init param
  Category cat = Category.getInstance("jsp.Prod");
  String strModuleName = "ERM";
  String privilegeCode = "10340";
  String contextPath = request.getContextPath();
  HashMap userinfo = (HashMap)session.getAttribute("userinfo");
%>
<% //--------------------  include files list --%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>
<%int LangNums = ConstantProp.multiLangNumber;%>
<html>
<head>
<title>DoctorProduct</title>
<PageFlow:CheckPageFlow pageName="p_zyldoctorprodinfo"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/Calendar.js"></script>
<script language="JavaScript">

function page_back(){
	parent.location.href="DoctorSummary.jsp?<%= OvalTools.randomURL()%>";
}

</script>
</head>
<iframe name="reloadHandler" style="display:none" ></iframe>
<body>
<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td class="summary_top"></td>
  </tr>
</table>
<table width="1450" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0">
  <form name="cform" method="post" action="/oval/Dispatcher" >
  <input type="hidden" name="pagename" value="p_zyldoctorprodinfo">
  <input type="hidden" name="actionname">
  <input type="hidden" name="doctorid" value="<%=pageContext.getAttribute("doctorid")%>">
		<tr class="deepblue-left"> 
          	<td width="250" class="title_center"><%= label.getLabelName("L_Products") %></td>
	  		<td width="60" class="title_center"><%= label.getLabelName("L_level") %></td>
			<td width="135" class="title_center"><%= label.getLabelName("L_BuyCycle") %></td>
	  		<td width="135" class="title_center"><%= label.getLabelName("L_ComplaintReason") %></td>
			<td width="135" class="title_center"><%= label.getLabelName("L_Potential") %></td>
	  		<td width="135" class="title_center"><%= label.getLabelName("L_DevelopDegree") %></td>
			<td width="135" class="title_center"><%= label.getLabelName("L_VisitWay") %></td>
	  		<td width="135" class="title_center"><%= label.getLabelName("L_Influence") %></td>
			<td width="135" class="title_center"><%= label.getLabelName("L_TeamworkDegree") %></td>
			<td width="90" class="title_center"><%= label.getLabelName("L_RelatedPatientNum") %></td>
	  	</tr>
      	  <%
            Vector doctorprodinfo=(Vector)pageContext.getAttribute("doctorprodinfo");
            if(doctorprodinfo==null)
              doctorprodinfo=new Vector();
            int i=1;
            int org =0;;
            String strClassType="none";
          %>
          <logic:iterate id="doctorprodinfoitem" collection="<%= doctorprodinfo %>" >
          <%
          	HashMap PSMap = (HashMap)pageContext.getAttribute("doctorprodinfoitem");
            Integer oColIndexLang=new Integer(i);
            if(i%2==0)
              strClassType="td-listrom";
            else
              strClassType="none";
            i++;
          %>
         <tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='<%=JspHelper.filterNull(strClassType)%>'"  class="<%=JspHelper.filterNull(strClassType)%>"> 
            <td class="td_center"><custom:write name="doctorprodinfoitem" property="prodname" nbsp="true"/></td>
           	<td class="td_center"><custom:write name="doctorprodinfoitem" property="valuename" nbsp="true"/></td>
           	<td class="td_center"><custom:write name="doctorprodinfoitem" property="purchasecycle" nbsp="true"/></td>
           	<td class="td_center"><custom:write name="doctorprodinfoitem" property="reason" nbsp="true"/></td>
           	<td class="td_center"><custom:write name="doctorprodinfoitem" property="potentiality" nbsp="true"/></td>
           	<td class="td_center"><custom:write name="doctorprodinfoitem" property="devlevel" nbsp="true"/></td>
           	<td class="td_center"><custom:write name="doctorprodinfoitem" property="visitway" nbsp="true"/></td>
           	<td class="td_center"><custom:write name="doctorprodinfoitem" property="influence" nbsp="true"/></td>
           	<td class="td_center"><custom:write name="doctorprodinfoitem" property="cooperationlevel" nbsp="true"/></td>
           	<td class="td_center"><custom:write name="doctorprodinfoitem" property="relatedpatient" nbsp="true"/></td>
          </tr>
          </logic:iterate>
  </form>
</table>
<table width="100%" cellspacing="0" cellpadding="0">
		<tr>
			<td class="summary_top"></td>
		</tr>
		<tr> 
		    <td height="49" class="td_center">
		      	<a onclick="page_back()"><custom:button type="1" label="L_Back" imgsrc="finish.gif" border="0" style="width:60"/></a>
		    </td>
  		</tr>
</table>
</body>
</html>